import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Role } from './role.entity';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { CasbinModule } from '../casbin/casbin.module';
import { AuthModule } from '../auth/auth.module';
import { RoleCategoryViewController } from './role-category-view.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([Role]),
    CasbinModule,
    AuthModule,
  ],
  controllers: [RoleController, RoleCategoryViewController],
  providers: [RoleService],
  exports: [RoleService],
})
export class RoleModule {}